package com.aspose.cells;

public class SparklineGroup {
   private SparklineGroupCollection a;
   private SparklineCollection b;
   private int c;
   private int d;
   private boolean e = false;
   private boolean f = false;
   private CellsColor g;
   private boolean h = false;
   private CellsColor i;
   private boolean j = false;
   private CellsColor k;
   private boolean l = false;
   private CellsColor m;
   private boolean n = false;
   private CellsColor o;
   private boolean p = false;
   private CellsColor q;
   private CellsColor r;
   private boolean s = false;
   private double t = 0.75D;
   private CellsColor u;
   private boolean v = false;
   private zboa w;
   private int x;
   private double y;
   private int z;
   private double A;

   SparklineGroup(SparklineGroupCollection groups, int type, String dataRange, boolean isVertical, CellArea locationRange) {
      this.a = groups;
      this.c = type;
      if (type == 2) {
         this.j = true;
      }

      this.b = new SparklineCollection(this, dataRange, isVertical, locationRange);
      this.setPresetStyle(0);
   }

   SparklineGroup(SparklineGroupCollection groups) {
      this.a = groups;
      this.b = new SparklineCollection(this);
   }

   public void resetRanges(String dataRange, boolean isVertical, CellArea locationRange) {
      this.b.a(dataRange, isVertical, locationRange);
   }

   SparklineGroupCollection a() {
      return this.a;
   }

   public int getPresetStyle() {
      return zboc.a(this);
   }

   public void setPresetStyle(int value) {
      zboc.a(this, value);
   }

   public SparklineCollection getSparklineCollection() {
      return this.b;
   }

   public int getType() {
      return this.c;
   }

   public void setType(int value) {
      this.c = value;
   }

   public int getPlotEmptyCellsType() {
      return this.d;
   }

   public void setPlotEmptyCellsType(int value) {
      this.d = value;
   }

   public boolean getDisplayHidden() {
      return this.e;
   }

   public void setDisplayHidden(boolean value) {
      this.e = value;
   }

   public boolean getShowHighPoint() {
      return this.f;
   }

   public void setShowHighPoint(boolean value) {
      this.f = value;
   }

   public CellsColor getHighPointColor() {
      return this.g;
   }

   public void setHighPointColor(CellsColor value) {
      if (value != null) {
         this.g = value;
      }
   }

   public boolean getShowLowPoint() {
      return this.h;
   }

   public void setShowLowPoint(boolean value) {
      this.h = value;
   }

   public CellsColor getLowPointColor() {
      return this.i;
   }

   public void setLowPointColor(CellsColor value) {
      if (value != null) {
         this.i = value;
      }
   }

   public boolean getShowNegativePoints() {
      return this.j;
   }

   public void setShowNegativePoints(boolean value) {
      this.j = value;
   }

   public CellsColor getNegativePointsColor() {
      return this.k;
   }

   public void setNegativePointsColor(CellsColor value) {
      if (value != null) {
         this.k = value;
      }
   }

   public boolean getShowFirstPoint() {
      return this.l;
   }

   public void setShowFirstPoint(boolean value) {
      this.l = value;
   }

   public CellsColor getFirstPointColor() {
      return this.m;
   }

   public void setFirstPointColor(CellsColor value) {
      if (value != null) {
         this.m = value;
      }
   }

   public boolean getShowLastPoint() {
      return this.n;
   }

   public void setShowLastPoint(boolean value) {
      this.n = value;
   }

   public CellsColor getLastPointColor() {
      return this.o;
   }

   public void setLastPointColor(CellsColor value) {
      if (value != null) {
         this.o = value;
      }
   }

   public boolean getShowMarkers() {
      return this.getType() == 0 ? this.p : false;
   }

   public void setShowMarkers(boolean value) {
      this.p = value;
   }

   public CellsColor getMarkersColor() {
      return this.q;
   }

   public void setMarkersColor(CellsColor value) {
      if (value != null) {
         this.q = value;
      }
   }

   public CellsColor getSeriesColor() {
      return this.r;
   }

   public void setSeriesColor(CellsColor value) {
      if (value != null) {
         this.r = value;
      }
   }

   public boolean getPlotRightToLeft() {
      return this.s;
   }

   public void setPlotRightToLeft(boolean value) {
      this.s = value;
   }

   public double getLineWeight() {
      return com.aspose.cells.b.a.zq.b(this.t, 2);
   }

   public void setLineWeight(double value) {
      if (value < 0.0D) {
         throw new CellsException(6, "Line weight must greater than zero.");
      } else {
         this.t = value;
      }
   }

   public CellsColor getHorizontalAxisColor() {
      return this.u;
   }

   public void setHorizontalAxisColor(CellsColor value) {
      this.u = value;
   }

   public boolean getShowHorizontalAxis() {
      return this.v;
   }

   public void setShowHorizontalAxis(boolean value) {
      this.v = value;
   }

   zboa b() {
      return this.w;
   }

   public String getHorizontalAxisDateRange() {
      return this.w == null ? null : zase.H(this.w.a());
   }

   public void setHorizontalAxisDateRange(String value) {
      if (value == null) {
         this.w = null;
      } else {
         Worksheet var2 = this.b.a().a().a();
         zboa var3 = new zboa(var2);
         var3.a(value);
         var3.c();
         if (var3.e == var3.g) {
            if (var3.j != var3.k) {
               throw new CellsException(14, "The reference for the data range is invalid");
            }
         } else {
            if (var3.d != var3.f) {
               throw new CellsException(14, "Data range cells must in same column or row");
            }

            if (var3.h != var3.i) {
               throw new CellsException(14, "The reference for the data range is invalid");
            }
         }

         this.w = var3;
      }
   }

   public int getVerticalAxisMaxValueType() {
      return this.x;
   }

   public void setVerticalAxisMaxValueType(int value) {
      this.x = value;
   }

   public double getVerticalAxisMaxValue() {
      return this.y;
   }

   public void setVerticalAxisMaxValue(double value) {
      this.y = value;
   }

   public int getVerticalAxisMinValueType() {
      return this.z;
   }

   public void setVerticalAxisMinValueType(int value) {
      this.z = value;
   }

   public double getVerticalAxisMinValue() {
      return this.A;
   }

   public void setVerticalAxisMinValue(double value) {
      this.A = value;
   }

   int a(Cells var1, int var2, int var3, boolean var4) {
      return this.b.a(var1, var2, var3, var4);
   }

   int b(Cells var1, int var2, int var3, boolean var4) {
      return this.b.b(var1, var2, var3, var4);
   }

   void a(SparklineGroup var1, boolean var2, int var3, int var4, int var5, CopyOptions var6) {
      this.a(var1, var6);

      for(int var7 = 0; var7 < var1.b.getCount(); ++var7) {
         Sparkline var8 = var1.b.get(var7);
         int var9 = var2 ? var8.getRow() : var8.getColumn();
         if (var9 >= var3 && var9 <= var3 + var5 - 1) {
            Sparkline var10 = new Sparkline(this.b);
            this.b.a(var10);
            var10.a(var8, var2, var3, var4, var5, var6);
         }
      }

   }

   void a(SparklineGroup var1, CopyOptions var2) {
      this.e = var1.e;
      this.m = this.a(var1.m, var2);
      this.g = this.a(var1.g, var2);
      this.u = this.a(var1.u, var2);
      this.w = var1.w;
      this.o = this.a(var1.o, var2);
      this.t = var1.t;
      this.i = this.a(var1.i, var2);
      this.q = this.a(var1.q, var2);
      this.k = this.a(var1.k, var2);
      this.d = var1.d;
      this.s = var1.s;
      this.r = this.a(var1.r, var2);
      this.l = var1.l;
      this.f = var1.f;
      this.v = var1.v;
      this.n = var1.n;
      this.h = var1.h;
      this.p = var1.p;
      this.j = var1.j;
      this.c = var1.c;
      this.y = var1.y;
      this.x = var1.x;
      this.A = var1.A;
      this.z = var1.z;
   }

   void b(SparklineGroup var1, CopyOptions var2) {
      this.a(var1, var2);

      for(int var3 = 0; var3 < var1.b.getCount(); ++var3) {
         Sparkline var4 = var1.b.get(var3);
         Sparkline var5 = new Sparkline(this.b);
         this.b.a(var5);
         var5.a(var4, var2);
      }

   }

   private CellsColor a(CellsColor var1, CopyOptions var2) {
      if (var1 == null) {
         return null;
      } else {
         CellsColor var3 = this.a.a().getWorkbook().createCellsColor();
         var3.a(var1, var2);
         return var3;
      }
   }
}
